//
//  BDNavGoodDetailHeader.m
//  BeidouMall
//
//  Created by qie on 16/5/12.
//  Copyright © 2016年 qie. All rights reserved.
//

#import "BDNavGoodDetailHeader.h"

@implementation BDNavGoodDetailHeader

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        
    }
    
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    _line = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 50, 3)];
    _line.center = self.goodLabel.center;
    _line.y = CGRectGetMaxY(self.frame) - 3;
    _line.backgroundColor = RGBColor(215, 19, 33);
    [self addSubview:_line];
    
    
}

- (IBAction)backButtonPressed:(UIButton *)sender {
    [_delegate backMethod];
}

- (IBAction)goodButtonPressed:(UIButton *)sender {
    [_delegate goodMethod];
}

- (IBAction)detailButtonPressed:(UIButton *)sender {
    [_delegate detailMethod];
}

- (IBAction)commentButtonPressed:(UIButton *)sender {
    [_delegate commentMethod];
}


- (IBAction)homeButtonPressed:(UIButton *)sender {
    [_delegate homeMethod];
}


@end
